package com.njtoyo.taxi.admin.rest.presenter.business.driver;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@ApiModel(value = "司机扣款查询模型")
public class MoneyDeductingPresenter {

    private Long id;

    @ApiModelProperty(value = "扣除的金额")
    private BigDecimal deduction;

    @ApiModelProperty(value = "扣除金额说明")
    private String detail;

    private Driver driver;
    private Canton canton;
    private Taxi taxi;
    private Company company;

    private Date createdAt;
    private Date updatedAt;

    @Data
    public static class Driver {
        private Long id;
        private String name;
        private String mobileNumber;
    }

    @Data
    public static class Canton {
        private Long id;
        private String name;
    }

    @Data
    public static class Taxi {
        private Long id;
        private String plateNumber;
    }

    @Data
    public static class Company {
        private Long id;
        private String name;
    }

}
